import request from '@/utils/request'

export function newsDetail(params) {
    return request({
        url: '/api/newsdetail.php',
        method: 'get',
        params: params
    })
}

export function newsDetailMock(params) {
    return request({
        url: '/mock/newsDetail',
        method: 'get',
        params: params
    })
}

export function userlist(params) {
    return request({
        url: '/mock/userlist.php',
        method: 'get',
        params: params
    })
}

export function loginApi(params) {
    return request({
        url: '/api/login.php',
        method: 'post',
        params: params
    })
}